package gui;

import java.awt.Component;

import javax.swing.JPanel;
import java.awt.FlowLayout;
import javax.swing.JLabel;
import javax.swing.ImageIcon;

import map.Station;

public class StationPanel extends JPanel {

	/**
	 * Create the panel.
	 */
	public StationPanel(Component parent, Station s) {
		setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
		
		JLabel lblNewLabel = new JLabel(s.getName());
		lblNewLabel.setIcon(new ImageIcon(StationPanel.class.getResource("/resources/station.png")));
		add(lblNewLabel);

	}

}
